package com.dys.designpattern.factorymethod.applyaward.factory.impl;

import com.dys.designpattern.factorymethod.applyaward.factory.FreeGoodsFactory;
import com.dys.designpattern.factorymethod.applyaward.service.IFreeGoods;
import com.dys.designpattern.factorymethod.applyaward.service.impl.DiscountFreeGoods;

/**
 * @Author: 疾风
 * @ClassName: DiscountFreeGoodsFactory
 * @Description: 具体工厂：发放打折券，由具体工厂来决定实例化哪一个具体的产品对象.
 * @CreateDate: 2024/05/14
 * @Version: v1.0.0
 */
public class DiscountFreeGoodsFactory implements FreeGoodsFactory {
    @Override
    public IFreeGoods getInstance() {
        return new DiscountFreeGoods();
    }
}
